package site.marqstree.kotlin.library.good.ui.fragment.category.centent.bean

import com.chad.library.adapter.base.entity.node.BaseExpandNode
import com.chad.library.adapter.base.entity.node.BaseNode
import com.chad.library.adapter.base.entity.node.NodeFooterImp

data class CategoryContentBean(
    val id: Int,
    val section: String,
    val goods: List<BrandBean>
): BaseExpandNode(),
    NodeFooterImp{
    override val footerNode: BaseNode?
        get() = FootBean("显示更多...")

    //重写此方法，获取子节点。如果没有子节点，返回 null 或者 空数组
    override val childNode: MutableList<BaseNode>?
        get() = goods.toMutableList()
}